package com.example.design.patterns.冰河.创建型模式.建造者.冰河.director;

import com.example.design.patterns.冰河.创建型模式.建造者.冰河.builder.PersonBuilder;
import com.example.design.patterns.冰河.创建型模式.建造者.冰河.product.Person;

/**
 * 构造一个使用builder接口的对象
 */
public class PersonDirector {

    public Person constructPerson(PersonBuilder person) {
        person.buildHead();
        person.buildBody();
        person.buildFoot();
        return person.buildPersion();
    }
}
